public class PhoneBookEntry implements Entry
{
	
	private String name;
	private Address address;
	private PhoneNumber number;
	
	public PhoneBookEntry(String n,Address a,PhoneNumber p)
	{
		this.name=n;
		this.address=a;
		this.number=p;
	}//constr clasei, primeste ca param date init mai sus
	
	public Entry copy()
	{
		return new PhoneBookEntry(this.name,this.address,this.number);
	}
	public String getName()
	{
		return this.name;
	}
	public String toString()
	{
		return "Phonebook Entry: "+this.name+" "+this.address+" "+this.number;
	}
}
